how to check if the string endswith given word